package us.mooresr.webtroopmanager.client.ui;

import java.util.ArrayList;
import java.util.List;

import us.mooresr.webtroopmanager.shared.EventParticipantSummary;
import us.mooresr.webtroopmanager.shared.PersonSummary;
import us.mooresr.webtroopmanager.shared.Privilege;

import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.IsWidget;

public interface EventParticipantsView extends IsWidget {
	void setPresenter(Presenter presenter);
	void setCurrentParticipants(List<EventParticipantSummary> participants);
	void setPotentialParticipants(List<PersonSummary> people);
	
	public interface Presenter {
		void goTo(Place place);	
		Boolean hasPermission(Privilege priv);
		Boolean isAllowed(Privilege priv, Long object);
		Long getEventId();
		PersonSummary getPerson(Long personId);
		void storeEventParticipants(ArrayList<EventParticipantSummary> participants);
	}
}
